package com.demo.common.utils;


import java.util.ArrayList;
import java.util.List;

public class ExcelVO {

    /**
     * 允许下载的最大的数量 默认为60000,可根据数据自身条件进行修改
     */
    private Integer maxRowNumber = 60000;

    /**
     * 下载的文件名称
     */
    private String fileName;

    /**
     * 配置列list
     */
    private List<Column> columnList = new ArrayList<Column>();


    public List<Column> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<Column> columnList) {
        this.columnList = columnList;
    }

    /**
     * Description: 添加列
     * @columnName 列名
     * @cellWidth 列宽
     */
    public void nextColumn(String columnName,Integer cellWidth){
        columnList.add(new Column(columnName,cellWidth));
    }


    /**
     * Description: 添加列
     * @columnName 列名
     * @cellWidth 列宽
     */
    public void nextColumn(String columnName,String propertyName,Integer cellWidth){
        columnList.add(new Column(columnName,propertyName,cellWidth));
    }

    public Integer getMaxRowNumber() {
        return maxRowNumber;
    }

    public void setMaxRowNumber(Integer maxRowNumber) {
        this.maxRowNumber = maxRowNumber;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
}
